package com.yangyouli.unity_demo_server.dao;

import java.util.List;

import com.yangyouli.unity_demo_server.annotation.InjectableDao;
import com.yangyouli.unity_demo_server.entity.Friends;
import com.yangyouli.unity_demo_server.entity.FriendsVO;
import com.yangyouli.unity_demo_server.util.Page;
import com.yangyouli.unity_demo_server.util.PageWithData;

@InjectableDao
public interface FriendsDao {
	int add (Friends friends);
	int delete (Friends friends);
	Friends find (Friends friends);
	List<FriendsVO> findFriends (int userId);
	FriendsVO findUserById (int userId);
	PageWithData<String, FriendsVO> findUserByName (Page<String> page);
}
